package com.frogs.ucenter.service.daoimpl;

import com.frogs.framework.base.dao.BaseDao;
import com.frogs.framework.base.service.daoimpl.BaseServiceImpl;
import com.frogs.ucenter.dao.UserShoppingRelationDao;
import com.frogs.ucenter.entity.UserShoppingRelation;
import com.frogs.ucenter.service.UserShoppingRelationService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class) 
@Service("userShoppingRelationService")
public class UserShoppingRelationServiceImpl extends BaseServiceImpl<UserShoppingRelation> implements UserShoppingRelationService {
    @Autowired
    private UserShoppingRelationDao userShoppingRelationDao;

    public UserShoppingRelationServiceImpl() {
        super();
    }

    public UserShoppingRelationDao getUserShoppingRelationDao() {
        return userShoppingRelationDao;
    }

    /**
     * Don't remove or edit it.
     */
    @Override
    protected BaseDao<UserShoppingRelation> getBaseDao() {
        return userShoppingRelationDao;
    }

    public void setUserShoppingRelationDao(UserShoppingRelationDao userShoppingRelationDao) {
        this.userShoppingRelationDao = userShoppingRelationDao;
    }
}